Search results
10 packages found
Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.
- array to tree
- list to tree
- unflatten
- array-helper
- array-manipulations
- data-structures
- datastructures
- algorithms
- tree-structure
- array
- list
- collection
- pointer
- parent
- View more
Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.
- array to tree
- list to tree
- unflatten
- array-helper
- array-manipulations
- data-structures
- datastructures
- algorithms
- tree-structure
- array
- list
- collection
- pointer
- parent
- View more
Walk or map over objects in a depth-first preorder or postorder manner.
Functions for converting trees to lists and vice versa.
flat-transform is a small library tranforming your flat objects into rich ones using declarative rules
Elegant and lightweight library for working with data structures
A useful tool for converting an array to a tree.
- tree from array
- tree from list
- array to tree
- list to tree
- unflatten
- array-helper
- array-manipulations
- tree-structure
- array
- list
- collection
- children
- child
- tree
- View more
Convert array to tree fastly, and opposite.
create a tree from an array of objects or a flat array from tree, and others operations on tree
Turn a flat object into a nested tree-like one, based on matching prefixes amongst its keys.